package com.heima.utils.threadlocal;


import com.heima.model.user.pojos.ApUser;

public class AppThreadLocalUtils {

    private final  static ThreadLocal<ApUser> userThreadLocal = new ThreadLocal<>();



    public static void setUser(ApUser user){
        userThreadLocal.set(user);
    }



    public static ApUser getUser( ){
        return userThreadLocal.get();
    }

}
